package ru.zombator.taskman.server.query.corba.manual;

import org.omg.PortableInterceptor.ORBInitInfo;

public class ORBIPAddrIntercInitializer extends org.omg.CORBA.LocalObject
		implements org.omg.PortableInterceptor.ORBInitializer {
	private static final long serialVersionUID = 1L;
	public static int slotId;

	public void pre_init(ORBInitInfo info) {
	}

	public void post_init(ORBInitInfo info) {
		try {
			slotId = info.allocate_slot_id();
			IPAddrInterceptor interceptor = new IPAddrInterceptor(slotId);

			info.add_server_request_interceptor(interceptor);
		} catch (Throwable t) {
		}
	}
}
